package com.maotouying.recycleviewtest.adapter;

import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.maotouying.recycleviewtest.R;
import com.maotouying.recycleviewtest.beans.ItemBean;

import java.util.List;

/**
 * @author mingtai
 * @description
 * @time 2020/8/22 23:15
 */

public class GridViewAdapter extends RecyclerViewBaseAdapter {

    public GridViewAdapter(List<ItemBean> data) {
        //super：父类对象的引用
        //父名和子类名相同时，用super名可调用父类方法
        super(data);
    }

    @Override
    protected View getSubView(ViewGroup parent, int viewType) {
        View view = View.inflate(parent.getContext(), R.layout.item_grid_view,null);
        return view;
    }
}
